package com.ieng.ormosia.groups.config;

import com.ieng.ormosia.groups.config.properties.JwtProperties;
import com.ieng.ormosia.groups.config.properties.LoginProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ConfigBeanProperties {

    @Bean
    @ConfigurationProperties(prefix = "security.login")
    public LoginProperties loginProperties(){
        return new LoginProperties();
    }

    @Bean
    @ConfigurationProperties(prefix = "security.jwt")
    public JwtProperties jwtProperties(){
        return new JwtProperties();
    }

}
